﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/OneCol.Master" AutoEventWireup="true" CodeBehind="UsersInRole.aspx.cs" Inherits="StarterKits.Mvc.Membership.Views.FormsAuthenticationAdministration.UsersInRole" %>
<asp:Content ID="content" ContentPlaceHolderID="Col1" runat="server">

<h2><% =ViewData.Model.Name %> Role</h2>
<fieldset>
	<% if( ViewData.Model.Users.Count > 0 ){ %>
	<ol>
		<% foreach( MembershipUser user in ViewData.Model.Users ){ %>
		<li><% =Html.ActionLink<P.InOut.NetMvc.Controllers.FormsAuthenticationAdministrationController>( x => x.UserDetails( (Guid)user.ProviderUserKey ), user.UserName )%> (<% =Html.ActionLink<P.InOut.NetMvc.Controllers.FormsAuthenticationAdministrationController>( x=>x.RemoveUserFromRole( (Guid)user.ProviderUserKey, ViewData.Model.Name ), "Remove" ) %>)</li>
		<% } %>
	</ol>
	<% }else{ %>
	<div>No users have been added to this role yet.</div>
	<% } %>
</fieldset>

</asp:Content>
